import request from '@/utils/request'

// 查询农检通合格证列表
export function listNjt_certificate(query) {
  return request({
    url: '/certificate/njt_certificate/list',
    method: 'get',
    params: query
  })
}

// 查询农检通合格证详细
export function getNjt_certificate(id) {
  return request({
    url: '/certificate/njt_certificate/' + id,
    method: 'get'
  })
}

// 新增农检通合格证
export function addNjt_certificate(data) {
  return request({
    url: '/certificate/njt_certificate',
    method: 'post',
    data: data
  })
}

// 修改农检通合格证
export function updateNjt_certificate(data) {
  return request({
    url: '/certificate/njt_certificate',
    method: 'put',
    data: data
  })
}

// 删除农检通合格证
export function delNjt_certificate(id) {
  return request({
    url: '/certificate/njt_certificate/' + id,
    method: 'delete'
  })
}
